package com.ray.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ray.bean.DutyBean;
import com.ray.bean.OrderBean;
import com.ray.bean.ReportBean;
import com.ray.exception.ServiceException;
import com.ray.mapper.DepartmentMapper;
import com.ray.mapper.OrderMapper;
import com.ray.pojo.Department;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

@Service
public class DepartmentService {
	
	@Autowired
	DepartmentMapper departmentMapper;

	public Department getDepartmentByWeiXin(Department dd) {
		return departmentMapper.getDepartmentByWeiXin(dd);
	}

	public void updateDepartmrnt(Department dd) {
		departmentMapper.updateDepartmrnt(dd);	
	}

	public void insertDepartment(Department dd) {
		departmentMapper.insertDepartment(dd);
	}

	public List<String> getDepartmentName(String[] deptId) {
		return departmentMapper.getDepartmentName(deptId);
	}

	

}
